<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
</head>
<body>
    跑步<input type="checkbox" name="as">
    看书<input type="checkbox" name="as">
    玩游戏<input type="checkbox" name="as">
    打篮球<input type="checkbox" name="as">
    追剧<input type="checkbox" name="as">
    全选<input type="checkbox" id="qx">
    <input type="button" value="反选" id="fx">
</body>
<script src="单选多选反选.js"></script>
</html>